<template>
	<view class="web">
		<web-view :src="webSrc"></web-view>
	</view>
</template>

<script setup>
	import {
		onLoad
	} from "@dcloudio/uni-app";
	import {
		ref,
		getCurrentInstance
	} from 'vue'
	const {
		proxy
	} = getCurrentInstance();

	const webSrc = ref('')

	onLoad(() => {
		const eventChannel = proxy.getOpenerEventChannel()
		eventChannel.on('acceptDataFromOpenerPage', (info) => {
			webSrc.value = info.link
		})
	})
</script>

<style lang="scss" scoped>
</style>